global:
  smtp_smarthost: '{{ smtp_host_port }}'
  smtp_from: '{{ email_username }}'
  smtp_auth_username: '{{ email_username }}'
  smtp_auth_password: '{{ email_password }}'
  smtp_require_tls: false

route:
  group_by: ['alertname']
  group_wait: 30s
  group_interval: 5m
  repeat_interval: 1m
  receiver: 'web.hook.prometheusalert'

receivers:
  - name: 'web.hook.prometheusalert'
    email_configs:
      - to: '{{ receivers_email }}'
    # 自定义发件人名称 (收件人看到的格式)
        headers:
          From: '{{ headers }} <{{ email_username }}>'  # 格式："自定义名称 <邮箱>"
